#############################################################################
# Main.R
# Aim: to run all replication files in this repository
# Run time: about 1 minute
#############################################################################

# INSTALL REQUIRED PACKAGES
rm(list=ls())

# Install packages, if necessary
# source("Package_install.R")

# CODE FOR MAIN TEXT 
source("Figure3.R")
source("Figure4.R")
source("Figure5.R")

# CODE FOR THE ONLINE APPENDIX
source("FigureE1.R")
source("FigureE2.R")
source("FigureE3.R")
source("FigureG1.R")
source("FigureG2.R")


sessionInfo()
# > sessionInfo()
# R version 4.3.1 (2023-06-16 ucrt)
# Platform: x86_64-w64-mingw32/x64 (64-bit)
# Running under: Windows 11 x64 (build 22000)
# 
# Matrix products: default
# 
# 
# locale:
# [1] LC_COLLATE=English_United States.utf8 
# [2] LC_CTYPE=English_United States.utf8   
# [3] LC_MONETARY=English_United States.utf8
# [4] LC_NUMERIC=C                          
# [5] LC_TIME=English_United States.utf8    
# 
# time zone: America/Chicago
# tzcode source: internal
# 
# attached base packages:
# [1] stats     graphics  grDevices utils     datasets  methods  
# [7] base     
# 
# other attached packages:
# [1] estimatr_1.0.0  stringi_1.7.12  combinat_0.0-8 
# [4] ggpubr_0.6.0    lubridate_1.9.3 forcats_1.0.0  
# [7] stringr_1.5.0   dplyr_1.1.3     purrr_1.0.2    
# [10] readr_2.1.4     tidyr_1.3.0     tibble_3.2.1   
# [13] ggplot2_3.4.3   tidyverse_2.0.0
# 
# loaded via a namespace (and not attached):
# [1] utf8_1.2.3        generics_0.1.3    rstatix_0.7.2    
# [4] hms_1.1.3         magrittr_2.0.3    grid_4.3.1       
# [7] timechange_0.2.0  backports_1.4.1   Formula_1.2-5    
# [10] fansi_1.0.4       scales_1.2.1      textshaping_0.3.6
# [13] abind_1.4-5       cli_3.6.1         crayon_1.5.2     
# [16] rlang_1.1.1       bit64_4.0.5       cowplot_1.1.1    
# [19] munsell_0.5.0     withr_2.5.1       parallel_4.3.1   
# [22] tools_4.3.1       tzdb_0.4.0        ggsignif_0.6.4   
# [25] colorspace_2.1-0  broom_1.0.5       vctrs_0.6.3      
# [28] R6_2.5.1          lifecycle_1.0.3   bit_4.0.5        
# [31] car_3.1-2         vroom_1.6.4       ragg_1.2.5       
# [34] pkgconfig_2.0.3   pillar_1.9.0      gtable_0.3.4     
# [37] Rcpp_1.0.11       glue_1.6.2        systemfonts_1.0.4
# [40] tidyselect_1.2.0  rstudioapi_0.15.0 farver_2.1.1     
# [43] xtable_1.8-4      carData_3.0-5     labeling_0.4.3   
# [46] compiler_4.3.1 

#############################################################################
# END OF THIS R SOURCE FILE
#############################################################################